package com.jiangyg.mall.core.support.async;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

/**
 * 类描述：异步任务异常处理注解
 * 
 * @author jiangyg
 * @date 2020-10-17
 * @version 2.0
 */
@Inherited
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExceptionHandler {

    /**
     * 功能描述：配置异常处理类
     * 
     * @return
     */
    Class<? extends AsyncUncaughtExceptionHandler> value();

}
